.class Lcom/nemustech/regina/DialogCare$18;
.super Ljava/lang/Object;
.source "DialogCare.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/DialogCare;->createDialog(I)Landroid/app/Dialog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/DialogCare;

.field final synthetic val$widget2:Lcom/nemustech/regina/widgets/clock/ClockWidget;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/DialogCare;Lcom/nemustech/regina/widgets/clock/ClockWidget;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 789
    iput-object p1, p0, Lcom/nemustech/regina/DialogCare$18;->this$0:Lcom/nemustech/regina/DialogCare;

    iput-object p2, p0, Lcom/nemustech/regina/DialogCare$18;->val$widget2:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 4
    .parameter "dialog"
    .parameter "item"

    .prologue
    .line 791
    const-wide/16 v0, -0x1

    .line 792
    .local v0, period:J
    sget-object v2, Lcom/nemustech/regina/widgets/clock/ClockWidget;->UPDATE_PERIOD_VALUES:[J

    array-length v2, v2

    if-ge p2, v2, :cond_0

    sget-object v2, Lcom/nemustech/regina/widgets/clock/ClockWidget;->UPDATE_PERIOD_VALUES:[J

    aget-wide v0, v2, p2

    .line 794
    :cond_0
    const-wide/16 v2, 0x0

    cmp-long v2, v0, v2

    if-ltz v2, :cond_1

    .line 795
    iget-object v2, p0, Lcom/nemustech/regina/DialogCare$18;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v2

    invoke-virtual {v2}, Lcom/nemustech/regina/ReginaLauncher;->getWeatherUpdatePeriod()J

    move-result-wide v2

    cmp-long v2, v2, v0

    if-eqz v2, :cond_1

    .line 796
    iget-object v2, p0, Lcom/nemustech/regina/DialogCare$18;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v2

    invoke-virtual {v2, v0, v1}, Lcom/nemustech/regina/ReginaLauncher;->setWeatherUpdatePeriod(J)V

    .line 797
    iget-object v2, p0, Lcom/nemustech/regina/DialogCare$18;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v2

    invoke-virtual {v2}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v2

    invoke-virtual {v2, v0, v1}, Lcom/nemustech/regina/ReginaPreference;->setUpdatePeriod(J)V

    .line 798
    iget-object v2, p0, Lcom/nemustech/regina/DialogCare$18;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v2}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v2

    invoke-virtual {v2}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v2

    invoke-virtual {v2}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 799
    iget-object v2, p0, Lcom/nemustech/regina/DialogCare$18;->val$widget2:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    if-eqz v2, :cond_1

    iget-object v2, p0, Lcom/nemustech/regina/DialogCare$18;->val$widget2:Lcom/nemustech/regina/widgets/clock/ClockWidget;

    invoke-virtual {v2, v0, v1}, Lcom/nemustech/regina/widgets/clock/ClockWidget;->setUpdatePeriod(J)V

    .line 802
    :cond_1
    iget-object v2, p0, Lcom/nemustech/regina/DialogCare$18;->this$0:Lcom/nemustech/regina/DialogCare;

    const/16 v3, 0xf

    invoke-static {v2, v3}, Lcom/nemustech/regina/DialogCare;->access$800(Lcom/nemustech/regina/DialogCare;I)V

    .line 803
    return-void
.end method
